package com.itheima.tlias84.controller;

import com.itheima.tlias84.dto.EmpEmployeeDTO;
import com.itheima.tlias84.dto.EmpGenderDTO;
import com.itheima.tlias84.servrce.EmpService;
import com.itheima.tlias84.servrce.ReportService;
import com.itheima.tlias84.utils.ResultUtil;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/report")
public class ReportController {
    @Resource
    ReportService reportService;
    @Resource
    EmpService empService;
    @GetMapping("/empGenderData")
    public ResultUtil selectEmpGender() {
        List<EmpGenderDTO> empGenderDTOS = reportService.selectEmpGender();
        return ResultUtil.success(empGenderDTOS);
    }
    @GetMapping("empJobData")
    public ResultUtil empJobData(){
        return empService.empJobData();
    }

}
